package org.vnl.platform.service.rule;

/**
 * 規則儲存器的Factory
 * 
 * @author Vaughan
 *
 */
public class RuleConfigContainerFactory {

    private static RuleConfigContainerFactory instance;
    
    private IRuleConfigContainer finder;
    
    private RuleConfigContainerFactory() {
        
    }
    
    public static RuleConfigContainerFactory getInstance() {
        if (instance == null) {
            instance = new RuleConfigContainerFactory();
        }
        return instance;
    }
    
    public void setRuleConfigFinder(IRuleConfigContainer finder) {
        this.finder = finder;
    }
    
    public IRuleConfigContainer getRuleConfigContainer() {
        return this.finder;
    }
    
}
